<seed-content class="load-bg">
  <seed-toolbar-header>
    <seed-toolbar-title>管理活动动态</seed-toolbar-title> <!--名字不是固定的-->
    <seed-toolbar-menu></seed-toolbar-menu>
  </seed-toolbar-header>

  <seed-infinite-scroll (infiniteScroll)="getCrowdDynamics()">
    <div class="dynamic-manage-page" *ngIf="dynamicList.length > 0">
      <ul>
        <li *ngFor=" let dynamic of dynamicList; let i = index;">
          <div class="dynamic-manage-info">
            <div class="user-info seed-flexbox seed-flexbox-content-between" >
              <seed-avatar [lazyLoadAvatar]="dynamic.iconUrl"
                           [userId]="dynamic?.userId"
              ></seed-avatar>
              <div class="info-text seed-flexbox-item">

                <span class="seed-flexbox seed-flexbox-align-center">
                  <span class="nick-name ">{{ dynamic.nickName | truncate:6 }}</span>
                  <img  *ngIf="dynamic.authImgUrl" [src]="dynamic.authImgUrl ">
                </span>
                <time>{{ dynamic.updateTime | amDateFormat:'YYYY/MM/DD HH:mm' }}</time>
              </div>
              <div class="del-btn" (click)="deleteDynamic(dynamic.id)"><img [src]="imgSer.getIcon(delPic)" ></div>
            </div>
          </div>

          <div class="dynamic-manage-words seed-underline">
            <span>活动筹备情况：</span>
            <span>{{ dynamic.activeDynamic }}</span>
          </div>
        </li>
      </ul>
      <seed-infinite-scroll-content class="load-bg" *ngIf="dynamicList.length > 5"></seed-infinite-scroll-content>
    </div>

  </seed-infinite-scroll>

  <!--缺省图-->
  <missing-default-content  *ngIf="dynamicList.length==0"></missing-default-content>

</seed-content>

<div class="seed-crowd-button">
  <button (click)="goToIssue()">发布动态</button>
</div>


